package com.jiangchuang.utils;

import java.util.Objects;

/**
 * @date 2024-07-02 9:27
 */
public class Global {

//    @Autowired
//    private MinioProperties minioProperties;

    // 域名
    public static String DOMAIN_NAME = "https://sanshipu.jianguijizhang.com";

    // minio请求前缀
//    public String getminioPrefix(){
//        return minioProperties.getBucketName();
//    }
    public static String getMinioPrefix(String bucketName) {
        return DOMAIN_NAME + "/minio/" + bucketName;
    }

    // oss请求前缀
    public static String getOssPrefix(String bucketName) {
        if(Objects.equals(bucketName, "jiangchuang-fanquan")){
            return DOMAIN_NAME + "/oss/fanquan";
        }else{
            return DOMAIN_NAME + "/oss/fanquan-test";
        }
    }
}
